package com.tiancheng.trade.order.controller.admin;

import com.tiancheng.trade.commom.core.data.PageInfo;
import com.tiancheng.trade.commom.core.data.Result;
import com.tiancheng.trade.order.service.BankCardService;
import com.tiancheng.trade.order.vo.admin.QueryBankCardVO;
import com.tiancheng.trade.order.vo.admin.res.QueryBankCardResVO;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: likailun
 * @Description: 绑卡操作，客户端调用
 * @Date: create in 2021/8/23 4:01 下午
 */
@Slf4j
@RestController
@RequestMapping("/admin/bankCard")
@Validated
public class BankCardAdminController {
    @Resource
    private BankCardService bankCardService;

    @GetMapping(value = "/queryList")
    public Result<PageInfo<QueryBankCardResVO>> queryBankList(QueryBankCardVO queryBankCardVO) {
        return Result.success(bankCardService.queryBankPage(queryBankCardVO));
    }

}
